<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
  <!ENTITY copy "&#169;">
  <!ENTITY nbsp "&#160;">
  <!ENTITY laquo "&#171;">
  <!ENTITY raquo "&#187;">
  <!ENTITY nbsp "&#160;">
  <!ENTITY amp "&#038;">
]>
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">


  <!-- xsl:include href="../list.xsl"/ -->
    <xsl:include href="../newlist.xsl"/>

    <xsl:template match="/">
        <xsl:apply-templates />
    </xsl:template>

    <xsl:template match="content">
        <script type="text/javascript" src="/js/auction_address_select.js" />
        <xsl:call-template name="Head-List"/>
        <div class="aside">
            <div class="head-slide on">
        Фільтр
            </div>
            <div class="container">
                <form action="/{$Controller}" method="post" class="filter">
                    <fieldset>
                        <ul class="editlist">
                            <li>
                                <label>Область</label>

                                <select name="id_region" id="id_region">
                                    <xsl:if test="not($Form/id_region/row)">
                                        <xsl:attribute name="disabled">disabled</xsl:attribute>
                                    </xsl:if>
                                    <option value="0">
                                        Не задано
                                    </option>
                                    <xsl:for-each select="$Form/id_region/row">
                                        <option value="{id}">
                                            <xsl:if test="@active">
                                                <xsl:attribute name="selected">selected</xsl:attribute>
                                            </xsl:if>
                                            <xsl:value-of select="name" /> (
                                            <xsl:value-of select="koatuu" />)
                                        </option>
                                    </xsl:for-each>
                                </select>

                            </li>

                            <li>
                                <label>Район</label>

                                <select name="id_district" id="id_district">
                                    <xsl:if test="not($Form/id_district/row)">
                                        <xsl:attribute name="disabled">disabled</xsl:attribute>
                                    </xsl:if>
                                    <option value="0">
                                        Не задано
                                    </option>
                                    <xsl:for-each select="$Form/id_district/row">
                                        <option value="{id}">
                                            <xsl:if test="@active">
                                                <xsl:attribute name="selected">selected</xsl:attribute>
                                            </xsl:if>
                                            <xsl:value-of select="name" /> (
                                            <xsl:value-of select="koatuu" />)
                                        </option>
                                    </xsl:for-each>
                                </select>
                            </li>

                            <li>
                                <label>Місто</label>

                                <select name="id_city" id="id_city">
                                    <xsl:if test="not($Form/id_city/row)">
                                        <xsl:attribute name="disabled">disabled</xsl:attribute>
                                    </xsl:if>
                                    <option value="0">
                                        Не задано
                                    </option>
                                    <xsl:for-each select="$Form/id_city/row">
                                        <option value="{id}">
                                            <xsl:if test="@active">
                                                <xsl:attribute name="selected">selected</xsl:attribute>
                                            </xsl:if>
                                            <xsl:value-of select="name" />
                                        </option>
                                    </xsl:for-each>
                                </select>
                            </li>
                            <li class="submit">
                                <input name="save" type="submit" id="save" style="font-weight: bold;" value="Застосувати" />
                                <input name="reset" type="submit" id="reset" value="Показати все" />
                            </li>
                        </ul>
                    </fieldset>
                </form>
            </div>




        </div>


        <div class="article">
            <div class="sort">
                <span>З виділеними:</span>
                <a href="javascript:;" id="button_remove">Видалити</a>
            </div>
      <!--xsl:apply-templates select="Main/List" /-->
            <xsl:call-template name="List">
                <xsl:with-param name="Node" select="Main/List"/>
                <xsl:with-param name="listName" select="'list'"/>
            </xsl:call-template>
        </div>    
    </xsl:template>
</xsl:stylesheet>